export function request(params){
	let baseUrl="http://192.168.1.103:8094"
	wx.showLoading({
		title: '加载中',
	})
	return new Promise((resolve,reject)=>{
		wx.request({
			...params,
			url: baseUrl+params.url,
			header:{
				Authorization:wx.getStorageSync('token')
			},
			success:(res)=>{
				resolve(res.data)
			},
			// fail:(err)=>{
			// 	reject(err)
			// },
			complete(){
				wx.hideLoading({
					success: (res) => {},
				})
			}
		})
	})
}